package com.nmsl.registration.service.impl;

import java.util.List;

import com.nmsl.registration.domain.skxIndex;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.registration.mapper.skxRegistrationManagementMapper;
import com.nmsl.registration.domain.skxRegistrationManagement;
import com.nmsl.registration.service.skxIRegistrationManagementService;

/**
 * 工作台Service业务层处理
 * 
 * @author sn
 * @date 2025-02-14
 */
@Service
public class skxRegistrationManagementServiceImplSkx implements skxIRegistrationManagementService
{
    @Autowired
    private skxRegistrationManagementMapper skxRegistrationManagementMapper;

    /**
     * 查询工作台
     * 
     * @param registrationId 工作台主键
     * @return 工作台
     */
    @Override
    public skxRegistrationManagement selectRegistrationManagementByRegistrationId(Long registrationId)
    {
        return skxRegistrationManagementMapper.selectRegistrationManagementByRegistrationId(registrationId);
    }

    /**
     * 查询工作台列表
     * 
     * @param skxRegistrationManagement 工作台
     * @return 工作台
     */
    @Override
    public List<skxRegistrationManagement> selectRegistrationManagementList(skxRegistrationManagement skxRegistrationManagement)
    {
        return skxRegistrationManagementMapper.selectRegistrationManagementList(skxRegistrationManagement);
    }

    /**
     * 新增工作台
     * 
     * @param skxRegistrationManagement 工作台
     * @return 结果
     */
    @Override
    public int insertRegistrationManagement(skxRegistrationManagement skxRegistrationManagement)
    {
        return skxRegistrationManagementMapper.insertRegistrationManagement(skxRegistrationManagement);
    }

    /**
     * 修改工作台
     * 
     * @param skxRegistrationManagement 工作台
     * @return 结果
     */
    @Override
    public int updateRegistrationManagement(skxRegistrationManagement skxRegistrationManagement)
    {
        return skxRegistrationManagementMapper.updateRegistrationManagement(skxRegistrationManagement);
    }

    /**
     * 批量删除工作台
     * 
     * @param registrationIds 需要删除的工作台主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationManagementByRegistrationIds(Long[] registrationIds)
    {
        return skxRegistrationManagementMapper.deleteRegistrationManagementByRegistrationIds(registrationIds);
    }

    /**
     * 删除工作台信息
     * 
     * @param registrationId 工作台主键
     * @return 结果
     */
    @Override
    public int deleteRegistrationManagementByRegistrationId(Long registrationId)
    {
        return skxRegistrationManagementMapper.deleteRegistrationManagementByRegistrationId(registrationId);
    }

    @Override
    public List<skxRegistrationManagement> getRegistrationManagementList() {
        return skxRegistrationManagementMapper.getRegistrationManagementList();
    }

    @Override
    public int addRegistrationManagement(skxRegistrationManagement skxRegistrationManagement) {
        return skxRegistrationManagementMapper.addRegistrationManagement(skxRegistrationManagement);
    }

    @Override
    public int updateRegistration(  skxRegistrationManagement skxRegistrationManagement) {
        return skxRegistrationManagementMapper.deleteRegistrationManagementByRegistrationId(skxRegistrationManagement.getRegistrationId());
    }

    @Override
    public List<skxRegistrationManagement> getRegistrationManagementListByIndex(skxIndex skxIndex) {
        return skxRegistrationManagementMapper.getRegistrationManagementListByIndex(skxIndex);
    }
}
